package com.byx.chatclient.event;

/**
 * EventType
 * 事件类型枚举类
 * @author Superb
 * @date 2021/4/5 16:26
 */
public enum EventType {
    /**
     * 私聊消息
     */
    SINGLE_CHAT_MSG(100,"私聊消息"),
    /**
     * 群聊消息
     */
    GROUP_CHAT_MSG(200,"群聊消息"),
    /**
     * 加好友通知
     */
    ADD_FRIEND_MSG(500,"加好友通知"),


    /**
     * 下载文件
     */
    DOWNLOAD_COMPLETE(700,"下载完成"),
    /**
     * 上传文件
     */
    UPLOAD_COMPLETE(800,"上传完成"),

    AVATAR_CHANGED(900,"检测到头像更改"),
    ;

    private final int code;
    private final String msg;

    EventType(int i, String msg) {
        this.code = i;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
